//package com.sky.aspect;
//
//import com.fasterxml.jackson.databind.ser.Serializers;
//import com.sky.annotation.AutoFill;
//import com.sky.context.BaseContext;
//import com.sky.enumeration.OperationType;
//import lombok.extern.slf4j.Slf4j;
//import org.aspectj.lang.JoinPoint;
//import org.aspectj.lang.annotation.Before;
//import org.aspectj.lang.annotation.Pointcut;
//import org.aspectj.lang.reflect.MethodSignature;
//import org.springframework.stereotype.Component;
//import org.springframework.web.bind.annotation.PostMapping;
//
//import java.time.LocalDateTime;
//import java.util.Locale;
//
///**
// * @author 28949
// * @version 1.0
// * @description:
// * @date 2025/1/3 19:29
// */
//@org.aspectj.lang.annotation.Aspect
//@Component
//@Slf4j
//public class Aspect {
//    @Pointcut("execution(* com.sky.mapper.*.*)&& " +
//            "@annotation(com.sky.annotation.AUtofill)")
//    public  void  autoFillP(){
//
//    }
//
//    @Before("autoFillP()")
//    public void  autoFill(JoinPoint joinPoint){
//        //获取方法对象，获取注解对象，获取数据类型
//        MethodSignature methodSignature=
//                (MethodSignature) joinPoint.getSignature();
//      AutoFill autoFill
//        =methodSignature.getMethod().getAnnotation(AutoFill.class);
//
//      OperationType value = autoFill.value();
//
//        Object[] args = joinPoint.getArgs();
//        if(args == null || args.length==0){
//            return;
//        }
//        Object entity =  args[0];
//        LocalDateTime now = LocalDateTime.now();
//        Long currentId = BaseContext.getCurrentId();
//
//         if( == OperationType.INSERT){}
//
//
//    }
//}
